<jsp:include page="logincheck.jsp" />
<%@ page import="java.util.*" %>

<jsp:useBean id="addAdminAcct" class="se2.Administrator" scope="request"/>
<jsp:setProperty name="addAdminAcct" property="*"/>

<% addAdminAcct.loadAllInformation(); %>

<html>

	<head>
		<title>Administration Console</title>

		<link rel="stylesheet" href="default.css" type="text/css" media="screen"></link>
		<script type="text/javascript" language="javascript" src="addAdministratorAccount.js"></script>
	</head>

	<body>
		<div id="container">
			<div id="navigation">
				<p>&nbsp;</p>
<jsp:include page="navigation.jsp" />
			</div>
			
			<div id="header">				
				<img src="images/header.png" />
			</div>

			<div id="content">

<!-- Main code -->

				<h1>Administrator Accounts :: Remove Administrator</h1>
				<form name="addAdmin" id="addAdmin" method="post" action="removeAdministratorAccountFunction.jsp">
					<input type="hidden" name="id" value="<%= addAdminAcct.getId() %>">
					
					<table border="0" width="100%" cellpadding="0" cellspacing="0">
						<tr>
							<td colspan="2"><span id="errorMessages"></span></td>
						</tr>
						<tr style="background-image: url('images/tableBackground.png');">
							<td width="200">Administrator Name</td>
							<td width="300"><%= addAdminAcct.getName() %></td>
						</tr>
						<tr>
							<td>Email Address</td>
							<td><%= addAdminAcct.getEmail() %></td>
						</tr>
						<tr style="background-image: url('images/tableBackground.png');">
							<td>Username</td>
							<td><%= addAdminAcct.getUsername() %></td>
						</tr>
						<tr>
							<td>Password</td>
							<td><%= addAdminAcct.getPassword() %></td>
						</tr>
						<tr style="background-image: url('images/tableBackground.png');">
							<td colspan="2" align="right">
							<input type="submit" value="Remove">
							<input type="button" value="Cancel" onclick="javascript:document.location.href='viewAdministratorAccount.jsp'" />
							</td>
						</tr>
					</table>
				</form>

<!-- Main Code -->

			</div>

			<div id="footer">
<jsp:include page="footer.jsp" />
			</div>
		</div>
	</body>

</html>
